const path=require('path');
import typescript2 from 'rollup-plugin-typescript2';
import css from 'rollup-plugin-css-only';
import vue from "rollup-plugin-vue";

const entryFileMain=path.resolve(__dirname,'../src/wave/packages/main.ts');
const entryFileIcon=path.resolve(__dirname,'../src/wave/icons/index.ts');

export default {
    input:[entryFileMain,entryFileIcon],
    output:{
        dir:'wave-lite',
        format:'es',
        preserveModules:true,
        preserveModulesRoot:'src/wave',
    },
    plugins:[
        vue({
            target:"browser",
            css:false,
            exposeFilename:false,
        }),
        typescript2(),
        css({
            output:'style/index.css'
        })
    ],
    external:['vue']
}